added check for absolute path