remove unused stuff like logging etc