added mock lib for testing