fixes, end-to-end tests

ok, good for me.