sans mem...various fixes