fixing plugin registering