apply mysession and so on