added support for single format spec