replaced absolutestring with path for C-Function