switch from Resources to lib