altered to work on ubuntu 12.10 host