modifications to work on ubuntu