improved memory warnings