functions and dictionary for importing costs data