release 3.0.4

Adjust requires logic and fix replace dependencies bug