updated to new packgram API