fix app must be visible when saving docking
added support for token strings