added config loading and initial plugin loading