static inline fns + lmap put all fix