implement basic program submission function.