fixed mechFree
mechFree with ideas on compilation