additional return checks in setup functions for benoitc/econfig#4