add option for printing memory status