very close now... added woraround for define()