auto cast - improvements and makeover