get_messages check if uid folder exists