plugin loading update

not sure if it will work. work in progress