with key validity check, security qn fixes, database fixes
bug fixes