porting over concepts from cloudfoundry cli