tested on ubuntu 12.04