TODO: transfer this to resource pack