replaced unlist with [[1]] for compatibility with astrakan