fixed loading of format and extension