fix some bug and implementation of the build_params func
adding core exceptions module