block attachment logic is now functional