try to execute media.cfg on the client before mapscript