add optimization and landscape option