added option to use beautify for formatting