config file working for head and tail