changed check_user() and get_toruser()