initial working version 0.8