added in error handling for meteor methods