fix for #83: dynamic sizing