fixed init of $config to support annotation