strip some debug fluff