removed check_sudo function