alpaca's dict added and improved
try except