refactored code to use utils namespace instead of libs