re 502 refactor