stub generation working