raise on unrecognized format
fixes #306
fixes #306
raise on invalid format