everything works except for autocomplete (mongodb issues)