updated functions with new disable plugins code