moved api sync into gui portion