onBeforeAttach short description