fixes, end-to-end tests