fully fexible shr_mem lib