add logging and return flickr