bypassing mesos issue and fixing environment check