dev: moved getconfig to plugin api as getconfigkey with optional default value when not found