add support for root-level bindings

got bit by this just now, let me know if you want changes