raise on unrecognized format