changed base dirname