fixing registration so that it takes just program and batch