capture building
masterID bugfix