changes for ubuntu compatibility