fixed problems with tt_api