unifying creditor & agency code + improving AJAX operations