merged frontend and backend