fix exceptions
fix exceptions
add output