intermediate commit with debug statements, fixed lesson paths and added check for previous version options