some models not saving, and variable scope in debugging fixed