got rid of heredoc, corrected uri, updated json_status calls