added retries, more rc file usage, overhaul