adapt env for ubuntu