updated some general utils