updated pluginLoader() function to pass only parent and child object