ridgecap math fix and upload curtain