first working verison of backend