move API to the top