Stepup to api 17 with backward compatibility to api 8

Still crashing :(