patched core, added dynamic path recognizing