some bug fixes for bad returns from API. and added new order methods