move file and session method form CONF to LIB