added usermgr. unfinished.