added basic gateway methods in the main class