rewritten api exposing model