changed dependency order to solve swagger runtime error