adding attach support