cleanup & autocode