this version is tested on Ubuntu12.04