add conditional for using this package in pre 0.6.5