log traces of scripts, fix error when no account resource
log traces of scripts, fix error when no account resource

FreedomCoop/valuenetwork,FreedomCoop/valuenetwork,FreedomCoop/valuenetwork,FreedomCoop/valuenetwork