got the file stuff working