modified panic and warn to display file and line