partial fix of my hacky curl generator