frontend is done, should fix some tests and add integration test