fixed warnings
work on console using new Framework