added more push plugin code