improved ubuntu compatibility