refactoring and problem solving from gspm auth configurations and
uncorrect pointers