changed from a printf to a perror and changed open bus to an int return type