dynamically calculate box sizes

starting to add configuration options