Separated out front end and backend, setup for lbapi