handling PREFIX as relative path