better handling of paypal config