modified parse_callback and calling thread to check for invalid characters in callback
fixed merge conflicts