move api to separate module