refactor confluence related operations