fixed to run with no bitcoin client