first crack at porting relish stuff over.