add requirements.txt
fix bug