add replacePath() to replace fullBucketPath in server side