bugfixed compile script