some fixes to receive payments