allow DOM objects directly instead of their id