rewrite api (get, set, calculate)