version 4.0, closes issue #5