fixed allowed_types, closes #16