compile scripts