fixed error and added method for retrieving modules