init stock and fix user dep