rewrite entry-api