changed to handle both url and file