add support for capAdd

@cjellick This is the same PR from a different branch @ibuildthecloud 
your indentation should be 4 spaces