setup class patjh