fix deploy and package scripts