added memory and logging options