cleans up get_control and adds some logging features