some progress on making backend api