handle goto. Fixes #1