fixes delims/options, adds debugging