first working version of 0.4