solves problem with require statements