trap for BUILD FAILURE