added some backend stuff in addition to frontend. Merging into backend.