bugfix
improved the api user provider