merge in wip cape framework

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>