cleaned up redcloth helper