use basename instead of full path