fix coat_size method in trouser
migrate switches