fix bags + refactor + support of windows
add r_config_get for get user_agent and symbol server