basic processing to plug things together