additional conditional to handle offset
handle ImportError explicitly