fix crash on pattern match failure
use a base64 encoded fileid instead of uuid string
add basic logging
don't start in debug mode