cleaned up plugin cache and plugin loading