move user actions to user.c