update aws publishing function and make local development easier