sketch input parser #2 (finished)