support for frontend and backend

This might be tricky and we need to test it
but this seems to work