adding FTW_CTX to callbacks