push resource handling to own directory, started work on gffi support