more commands included in max_project.R