refactor requestmanager