moved readfile into variations