preparse getlogs and added tests