fixes, end-to-end tests

ok