prepare to get userdata