some improvements for payment plugins