added option 'auto_res'