remove pyc
add session support