correct error handling
add version file