withdraw command and fixes associated with that