Revert "remove postinstall"

This reverts commit 25927318ed56fe7f2ad7fe04bc237e75cbf8fc3b.
Revert "remove all the unused things"

This reverts commit afbe4e4980b278e3e42960411892338a4b501ba1.