add github setup and fix bug