remove non-standard SF syntax
add csf test script
fix domain bugs