core: added string
window: redesign api; osx support