wrap packages in a if defined to prevent conflict with modules