move api to static