#42 added option to use view or not