patching things together