added substring-function to dataloader