GUI-1040
employed locking around magic library