add z and m libraries