added gateway methods
updated examples