finalize plan the silly way
clean up loop termination. scaffold permissions function.