its gonna work as an API