cleaned up unused functionality, only used for experimenting.