support for ID and IDURL (issues #10 and #12)