minor improvements, prototypes of different output formats