fix [[ ]] strings, remove some unused syntax