moving addBlockAfter to the server to eliminate merge conflicts