update defs to 0.4.0, tag 0.3.0