changed behaviour for creating github client and added credentials