implemented and tested ubuntu 1404 and centos 7