updated pluginLoader()

Included valid logic for pluginLoader()