some cleanup
some cleanup
refactoring and connectivity receiver
refactoring of apitransmit