sanitize module api, now move to another file