some improvements from linaro

Signed-off-by: dragon <dragon7780@hotmail.nl>