rewriting API Manager