add /api prefix and some changes as well