added more error handling when seraching for coins