changed chomp and added listen rebuild and listener