stupid stuff with bouncy castle?