corrected namespace and added plugin loader logic