various sec hints from semarie, we need to work hard on this