updated to match new jnxlib