moved getBasePath to WebWbkrnl