* guess_type moved to resource