changed gems source and added use of local