fix java<->scala dependency
add ability to save screenshots