mainfile fix for ace