fixed to work with updated local db