finally fixed helper libs and resource initialization