awake functionality

reconfigured major scripts to use awake function for building
association