add auto minimal resolution feature