locals added to frontend and backend