implemented max_callbacks as rc param