do some clean up things