dependency resolving and postinstall fix