added TA options and fixed some syntax bugs