move old api to legacy