add dependencies system to plugins