support for custom (already added to DOM) elements