testing and logging functions added
coming along