cleaned up unused functions in misc library