first test code
file output added
master includes direct file output