stop hardcoding localhost in console