increased max tries to 5, log registration id for debugging