improve ensure packages