remove necessary things from slugfile