make it work on the client and the server

wip preparing for server side rendering