added pause feature.
not sure