cleaned up the static utils and added try_as