retwis.h - all retwis functions