adding (forgotten) package check code, session check code, logging code; add support for passing arguments from command.ini