removed exception for main
minor
logging to DEBUG