support attach at runtime