ramresident first implementation