Modify add() so that it can add prefix and postfix to uri.