refined account api and testing interface