fix fresh installation errors
prepare for release 4.0.0-4