read nr of iterations from config instead of hardcoded value
fixup
fixup stuff