convert usersync to normal console script