adding check if the absolute path is used