changed mind
finally decided going to completely decouple frontend and backend
refactor
got it