some changes to get it to work in debian