ensure packages expetcs an array