move loading into separate file