moved grnet adapter methods to its own file