added file rows
added more functionality
used overkill for length right now