split modem code to tx rx bases