logging added, execution moved to runMain