use readFileSync for the moment. dirty but similar to original code