added the util package for debug and checking inputs