main functions of io & rs pass basic test