turn off unused .onLoad and .onAttach functions