better way of loading plugins