better screenshot, optimized compilation