use basename instead of absolute path