added some options to control formatting