more code to cope with no database