fixed init and compile script