added file permission service; added file permission checks; replaced
target by full path