common library for gstone