refactored trader startup