added methods, commented log4j comment for android problems