first working version on ubuntu 12.04