added rc config code