fix for ubuntu and debian