move stuff to api.php just because