added functions file and xcp command