added user and sudo check