add sex default and minor fixes