adjusting to packjs (was unclear from docs online)