compat with debian and more flexibility