remove deploy from dependencies, if/then check optimization