refined the functionlib.sh and correct an issue in the smcp.conf