should return 0 on success
ignore executable
add getBGR function