added additional file type with a better error on invalid type