added some consoling and debugging information