initial work on manage
refactored to be modular
remove keys
add support for managing