add handler for longs