basic file path calc in state.  still needs work