Isolated the reset functionality for upload to fix uart uploads in beta