bootstrapping, exit status checking and logging