some tidy work + handy graph res changer in main