only spin resources when connected
cleanup before merging