add error loggin to help debugging also including pokemon exception handling ;-P