added API messages gateway