minor changes

afw test now can use sobel
fsw new registerfunction (it is easy to use)