debug: option handling