added definitions and postinstall scripts