add callback in parse and remove argument pathBox