implemented pusher prepare meethod