added rc as config and args parser
[min] fixed EOFs