make error message a bit nicer
add support for creating new files