fix wrong assertions
include stacktrace in error message
include detection from libmagic
fix error where url whole be duplicated
corrent wrong overwrite when upserting
command line options