add compatibility for ubuntu