debug option added per #70