docs
refactor to package