more backend code for mobile app