modified post install and rm scripts