added a few functions to backend