in a somewhat working state, ran into detection problems though