added option for small or large page size devices to be programmed