advanced IPG file handler