refactor: adapt data structures to the ones used by npm