pkg doc
refactor