fix fs exception error, add nest_level
work in progress
wip
remove debugging
misc cleanup