moving the dirty inside of porcupine main class