update formatting - move scripts to separate file