moved api root to /api, fixed some additional errors