add parse file function to ng-rip