modify it to work together with other plugins