Renamed parse_scope to parse
Handle cases where scope needs to be send back to client