commented out import functx so can use offline