modified script behavior a bit, added version