added chunk adding functionality