slightly changed the compile scripts