windowId support + support for callbacks