fix brackets for if statements, make property configurable