move text2bool to os_calls