factored out folder module
getting commits code