added chunk functionallity, auto get self ip