separated main function from getBuses module