Revert "update to v0.4.0 final"

This reverts commit 6589d4f972211b52606b69c88c8ff914bdaa9c10.