adaptation for ubuntu port