fixed bug with non-working so-sync-handler if there's no "-d" set