remove autopublish and insecure, add necessary packages