add format support from issue #1