minor fixes
solved a small naming problem
added an exception for printing attachements