Distr args

extended version of PR #1022 against maintenance 0.5