added screenshooter code