adding atom_getlong to functions used from Max