added p3 stuff
working