added g_error to all getters and setters