device width feature

squshed commits for #32