getting csv automaticaly