refactor : delete Refs, add Cost.fromString