refactor: nice api