pandas free mem readded
minor martingale tuning