improved speed and added status printouts