need to use $RESULTDIR in path